package com.MonkWorks.timedormitoryDB;
/**
 * used to implement ItimeProvider
 * used as a test class
 */
import java.io.IOException;
import java.util.HashMap;
import java.util.List;

import android.location.Location;
import android.text.format.Time;

import com.MonkWorks.clockDTO.Job;
import com.MonkWorks.clockDTO.User;

public class TimeProviderStub {

	/**
	 * Method ClockIn
	 * 
	 * @param user
	 *            , time, job, location
	 * @throws Exception
	 *             if null Process normally if !null
	 */

	public void clockIn(User user, String time, Job job, int Latitude,
			int Longitude) throws Exception {
		// TODO Auto-generated method stub
		
	}

	/**
	 * Method ClockOut
	 * 
	 * @param user
	 *            , time, job, location
	 * @throws Exception
	 *             if null Process normally if !null
	 */
	public void clockOut(User user, String time, Job job, int Latitude,
			int Longitude)
			throws Exception {
		//TODO

	}

	/**
	 * Method fetchJob
	 * 
	 * @param Job
	 * @return jobMap return job based on JobID
	 */
	public HashMap<String, Job> fetchJob() throws Exception {
		// I added this in in case you wanted to pull up a report to the UI
		try {
			HashMap<String, Job> jobMap = new HashMap<String, Job>();
			Job job = new Job();
			jobMap.put("0001", job);

			job.setJobID(0001);
			job.setName("UC Project");
			job.setDescription(".net Programming for UC website");
			job.setAddress("1234 Aven St. Cincinnati Ohio 45124");

			return jobMap;
		} catch (Exception e) {
			throw new IOException("Unable to fetch job");
		}
	}


	public boolean Logon(String Username, String Password) throws Exception {
		// TODO Auto-generated method stub
		return false;
	}


	public User fetchUser(String username) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	
	public void saveUser(User user) throws Exception {
		// TODO Auto-generated method stub
		
	}


	public HashMap<String, User> fetchAll() {
		// TODO Auto-generated method stub
		return null;
	}


	public void generateAdmin() throws Exception {
		// TODO Auto-generated method stub
		
	}

	
	public List<Job> fetchJobByUser(String username) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}


	public void saveJob(Job job) throws Exception {
		// TODO Auto-generated method stub
		
	}


}
